package JAVA20241111;

class PetDog{
    public String name;
    public String color;
    public void barks(){
        System.out.println("汪汪汪~~");
    }
    public void wag(){
        System.out.println("摇尾巴");
    }
}
public class one{
    public static void main(String[] args) {
        PetDog dogh = new PetDog();
        dogh.name = "大黄";
        dogh.color = "金黄";
        System.out.println(dogh.name+"正在");
        dogh.barks();
        dogh.wag();


        PetDog dogs = new PetDog();
        dogs.name = "赛虎";
        dogs.color="黑色";
        System.out.println(dogs.color+dogs.name +"正在");
        dogs.barks();
        dogs.wag();
    }
}